package springapp.web.service;

import java.util.List;


import springapp.web.domain.Product;


public class ProductFacadeImpl implements ProductFacade {
	private List<Product> products;
	@Override
	public void increasePrice(int percentage) {
		if(products!=null){
			for(Product p : products){
				p.setPrice(p.getPrice() * (100+percentage)/100);
			}
		}
	}

	@Override
	public List<Product> getProducts() {		
		return products;
	}

	@Override
	public void setProducts(List<Product> products) {
		this.products = products;		
	}

}
